import request from '@/utils/request'

// 查询培训类别列表
export function trainTypeAll(query) {
  return request({
    url: '/system/aTrain/trainTypeAll',
    method: 'get',
    params: query
  })
}

// 查询培训类别列表
export function listATrain(query) {
  return request({
    url: '/system/aTrain/list',
    method: 'get',
    params: query
  })
}

// 查询培训类别详细
export function getATrain(id) {
  return request({
    url: '/system/aTrain/' + id,
    method: 'get'
  })
}

// 新增培训类别
export function addATrain(data) {
  return request({
    url: '/system/aTrain',
    method: 'post',
    data: data
  })
}

// 修改培训类别
export function updateATrain(data) {
  return request({
    url: '/system/aTrain',
    method: 'put',
    data: data
  })
}

// 删除培训类别
export function delATrain(id) {
  return request({
    url: '/system/aTrain/' + id,
    method: 'delete'
  })
}


// 获取随机密码
export function randomPass() {
  return request({
    url: '/system/aTrain/randomPass',
    method: 'get'
  })
}
